import {useArray, useMount} from 'utils'

export interface Person {
  name: string;
  age: number;
}

export const TsReactTest = () => {
  const persons: Person[] = [
    {name: 'jack', age: 25},
    {name: 'ma', age: 22}
  ]

  const { value, clear, removeIndex, add } = useArray(persons)

  useMount(() => {
    // console.log(value.notExist)
    // add({name: 'david'})
    // removeIndex('12')
  })
}
